<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
		<script type="text/javascript">
			$(function(){
				var jqOddLi = $("li:odd");
				var jqEvenLi = $("li:even");
				var color = "";
				
				jqOddLi.css("background","red");
				jqEvenLi.css("background","yellow");
				
				$("li").mouseenter(function(){
					color = $(this).css("background");
					$(this).css("background","aqua");
				})
				$("li").mouseleave(function(){
					$(this).css("background",color);
				})
			})
		</script>
	</head>
	<body>
		<ul>
			<li>1</li>
			<li>2</li>
			<li>3</li>
			<li>4</li>
			<li>5</li>
			<li>6</li>
			<li>7</li>
			<li>8</li>
		</ul>
	</body>
</html>
